module.exports = {
  apps : [{
    name: 'gma',

    // Options reference: https://pm2.io/doc/en/runtime/reference/ecosystem-file/

    // simple
    //interpreter: "/root/.pyenv/shims/python3",
    //script: 'manage.py',
    //args: 'runserver 0.0.0.0:6200',

    // gunicorn
    interpreter: "bash",
    script: '/root/.pyenv/shims/gunicorn',
    args: '--workers=4 --worker-class=gevent --bind=0.0.0.0:6200 papatv.wsgi',

    instances: 1,
    autorestart: true,
    watch: false,
    max_memory_restart: '1G',

    env: {
      NODE_ENV: 'development'
    },
    env_production: {
      NODE_ENV: 'production'
    }
  }]
};
